package cn.jjxx.modules.activiti.servicetask;


import org.activiti.engine.delegate.DelegateExecution;
import org.activiti.engine.delegate.JavaDelegate;

import cn.jjxx.core.utils.SpringContextHolder;
import cn.jjxx.modules.activiti.controller.ActivitiFlowService;

/**
 * @Title: CloseFlowServiceTask.java .<br>
 * @Package cn.jjxx.modules.activiti.servicetask .<br>
 * @Description: 关闭流程服务类 .<br>
 * @author 郑成功 .<br>
 * @email a876459952@qq.com .<br>
 * @date 2018-9-30 上午10:34:40.<br>
 * @version V1.0.<br>
 */
public class CloseFlowServiceTask implements JavaDelegate{

	@Override
	public void execute(DelegateExecution execution) throws Exception {
		SpringContextHolder.getBean(ActivitiFlowService.class).closeFlow(execution.getId());
	}

}
